package com.zycfc.zsf.boot.mq.rabbitmq.handler.domain;

import java.util.*;

public class MqPager
{
    private Long total;
    private Integer pageNo;
    private Integer pageSize;
    private List<Map<String, Object>> datas;
    
    public MqPager(final Long total, final Integer pageNo, final Integer pageSize, final List<Map<String, Object>> datas) {
        this.total = total;
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.datas = datas;
    }
    
    public Long getTotal() {
        return this.total;
    }
    
    public Integer getPageNo() {
        return this.pageNo;
    }
    
    public Integer getPageSize() {
        return this.pageSize;
    }
    
    public List<Map<String, Object>> getDatas() {
        return this.datas;
    }
    
    public void setTotal(final Long total) {
        this.total = total;
    }
    
    public void setPageNo(final Integer pageNo) {
        this.pageNo = pageNo;
    }
    
    public void setPageSize(final Integer pageSize) {
        this.pageSize = pageSize;
    }
    
    public void setDatas(final List<Map<String, Object>> datas) {
        this.datas = datas;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof MqPager)) {
            return false;
        }
        final MqPager other = (MqPager)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$total = this.getTotal();
        final Object other$total = other.getTotal();
        Label_0065: {
            if (this$total == null) {
                if (other$total == null) {
                    break Label_0065;
                }
            }
            else if (this$total.equals(other$total)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$pageNo = this.getPageNo();
        final Object other$pageNo = other.getPageNo();
        Label_0102: {
            if (this$pageNo == null) {
                if (other$pageNo == null) {
                    break Label_0102;
                }
            }
            else if (this$pageNo.equals(other$pageNo)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$pageSize = this.getPageSize();
        final Object other$pageSize = other.getPageSize();
        Label_0139: {
            if (this$pageSize == null) {
                if (other$pageSize == null) {
                    break Label_0139;
                }
            }
            else if (this$pageSize.equals(other$pageSize)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$datas = this.getDatas();
        final Object other$datas = other.getDatas();
        if (this$datas == null) {
            if (other$datas == null) {
                return true;
            }
        }
        else if (this$datas.equals(other$datas)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof MqPager;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $total = this.getTotal();
        result = result * 59 + (($total == null) ? 43 : $total.hashCode());
        final Object $pageNo = this.getPageNo();
        result = result * 59 + (($pageNo == null) ? 43 : $pageNo.hashCode());
        final Object $pageSize = this.getPageSize();
        result = result * 59 + (($pageSize == null) ? 43 : $pageSize.hashCode());
        final Object $datas = this.getDatas();
        result = result * 59 + (($datas == null) ? 43 : $datas.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "MqPager(total=" + this.getTotal() + ", pageNo=" + this.getPageNo() + ", pageSize=" + this.getPageSize() + ", datas=" + this.getDatas() + ")";
    }
}
